﻿<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8" />
    <title>xBim Viewer 1</title>
    <script src="/Scripts/xbim/xbim-viewer.debug.bundle.js"></script>
</head>
<body>
    <div id="content">
        <canvas id="viewer" width="900" height="600"></canvas>
        <div id="msg"></div>
        <script type="text/javascript">
            var check = xViewer.check();
            if (check.noErrors) {
                var viewer = new xViewer('viewer');
                viewer.load('/res/ifc/Ghasem.wexBIM');
                viewer.start();
            }
            else {
                var msg = document.getElementById('msg');
                msg.innerHTML = '';
                for (var i in check.errors) {
                    var error = check.errors[i];
                    msg.innerHTML += "<div style='color: red;'>" + error + "</div>";
                }
            }


        </script>
    </div>
</body>
</html>